package com.beagle.njddapp.bean;

import com.beagle.njddapp.net.BaseResponseBean;

/**
 * @author hxx
 * @date 2021-03-18 14:41
 */
public class UserInfoBean implements BaseResponseBean {


    /**
     * userId : 10
     * userName :
     * nickname :
     * gender : 0
     * idcard :
     * phone : 18625783190
     * address :
     * company :
     * userRole : 1
     * userRoleName : 普通农户
     * emergencyContact :
     * emergencyContactPhone :
     * drivingAge : 0
     * createTime : 2021-03-16 15:57:29
     * oftenMechId : 0
     * oftenMechNum :
     * licenceUrlA :
     * licenceUrlB :
     */

    private String userId;
    private String userName;
    private String nickname;
    private int gender;
    private String idcard;
    private String phone;
    private String address;
    private String company;
    private int userRole;
    private String userRoleName;
    private String emergencyContact;
    private String emergencyContactPhone;
    private int drivingAge;
    private String createTime;
    private int oftenMechId;
    private String oftenMechNum;
    private String licenceUrlA;
    private String licenceUrlB;
    private String invitationCode;
    private String invitationName;

    public String getInvitationName() {
        return invitationName;
    }

    public void setInvitationName(String invitationName) {
        this.invitationName = invitationName;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public String getUserRoleName() {
        return userRoleName;
    }

    public void setUserRoleName(String userRoleName) {
        this.userRoleName = userRoleName;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getEmergencyContactPhone() {
        return emergencyContactPhone;
    }

    public void setEmergencyContactPhone(String emergencyContactPhone) {
        this.emergencyContactPhone = emergencyContactPhone;
    }

    public int getDrivingAge() {
        return drivingAge;
    }

    public void setDrivingAge(int drivingAge) {
        this.drivingAge = drivingAge;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getOftenMechId() {
        return oftenMechId;
    }

    public void setOftenMechId(int oftenMechId) {
        this.oftenMechId = oftenMechId;
    }

    public String getOftenMechNum() {
        return oftenMechNum;
    }

    public void setOftenMechNum(String oftenMechNum) {
        this.oftenMechNum = oftenMechNum;
    }

    public String getLicenceUrlA() {
        return licenceUrlA;
    }

    public void setLicenceUrlA(String licenceUrlA) {
        this.licenceUrlA = licenceUrlA;
    }

    public String getLicenceUrlB() {
        return licenceUrlB;
    }

    public void setLicenceUrlB(String licenceUrlB) {
        this.licenceUrlB = licenceUrlB;
    }

    public UserInfoBean coyp(UserInfoBean userInfoBean){
        setUserName(userInfoBean.getUserName());
        setNickname(userInfoBean.getNickname());
        setUserRole(userInfoBean.getUserRole());
        setGender(userInfoBean.getGender());
        setLicenceUrlB(userInfoBean.getLicenceUrlB());
        setLicenceUrlA(userInfoBean.getLicenceUrlA());
        setOftenMechNum(userInfoBean.getOftenMechNum());
        setOftenMechId(userInfoBean.getOftenMechId());
        setDrivingAge(userInfoBean.getDrivingAge());
        setUserRoleName(userInfoBean.getUserRoleName());
        setIdcard(userInfoBean.getIdcard());
        setCompany(userInfoBean.getCompany());
        setCreateTime(userInfoBean.getCreateTime());
        setPhone(userInfoBean.getPhone());
        setEmergencyContactPhone(userInfoBean.getEmergencyContactPhone());
        setEmergencyContact(userInfoBean.getEmergencyContact());
        setInvitationCode(userInfoBean.getInvitationCode());
        setInvitationName(userInfoBean.getInvitationName());
        setAddress(userInfoBean.getAddress());
        return this;

    }

}
